<div class="feedback_block_footer r0">

    <script type="text/javascript">
        addLoadEvent(function () {
            var src = config['wwwroot'] + 'artefact/feedback/js/feedback.js';
            var scripts = document.getElementsByTagName('script');

            var script = null;
            for(var i= 0; i < scripts.length; i++)
            {
                if(scripts[i].getAttribute('src') == src){
                    return;
                }
            }

            var head= document.getElementsByTagName('head')[0];
            var script= document.createElement('script');
            script.type= 'text/javascript';
            script.src= src;
            head.appendChild(script);
        });

    </script>

    <div class="feedback_menu" style="display:inline;">
        <a id="feedback_menu_for_{$parent_id}" class="fcollapsed" href="#" onclick="toggleElementClass('js-hidden', 'feedback_for_{$parent_id}'); toggleElementClass('fcollapsible', 'feedback_menu_for_{$parent_id}'); return false;">{str tag=Feedbacks section=artefact.feedback} ({$count})</a>
        {if $can_edit} | <a href="{$WWWROOT}artefact/feedback/list.php?parent_id={$parent_id}&amp;view_id={$view_id}&amp;show_form=true">{str tag=Add section=artefact.feedback}</a>
        {/if}
        <div id="feedback_for_{$parent_id}" class="feedback_items js-hidden" style="width:100%;">
            {if $data}
            <table  id="{$table_id}" style="width:100%;">
                <tbody>
                    {include file="feedback_items.tpl"}
                </tbody>
            </table>
            {/if}
            {if $count>3}
                <a href="{$WWWROOT}artefact/feedback/list.php?parent_id={$parent_id}&amp;view_id={$view_id}" >{str tag=All section=artefact.feedback}</a>
            {/if}
        </div>
    </div>
</div> 